/*
 * IkaClient.cpp
 */

#include "IkaClient.h"
#include <iostream>
#include "define.h"

using namespace atomic;
using namespace std;

namespace atomic {

//*********************************************************************
IkaClient::IkaClient() {
	Init();
}

//*********************************************************************
IkaClient::~IkaClient() {
}

//*********************************************************************
void IkaClient::Init() {
}

//*********************************************************************
void IkaClient::MainLoop() {
}

//*********************************************************************
void IkaClient::Update() {
}

//*********************************************************************
void IkaClient::Render() {
}

//*********************************************************************
}

/*
 IkaClient::IkaClient(sf::IPAddress srvAdr, int serverPort, bool fullscreen,
 int width, int height, IkaString title) {

 myPort = serverPort;
 myServerAddress = srvAdr;
 // local adress
 sf::IPAddress Address = sf::IPAddress::GetLocalAddress();
 std::cout << "client dit: LocalAddress:" << Address << std::endl;
 // public IP
 // sf::IPAddress Address7 = sf::IPAddress::GetPublicAddress();
 // std::cout << "client dit: PublicAddress:" << Address7 << std::endl;
 // Connect to server
 if (!myClient.Connect(myPort, myServerAddress)){
 //return;
 std::cout << "client say: unable to connect to server " << std::endl;
 } else {
 std::cout << "client dit: connecte au serveur " << myServerAddress << std::endl;
 }


 // unblock
 myClient.SetBlocking(false);

 myPacket.Clear();
 }



 void IkaClient::Delete() {
 }




 sf::Packet IkaClient::GetIncommingPacket() {
 sf::Packet packet;
 return packet;
 }

 sf::Packet IkaClient::ReceivePacket() {
 sf::Packet packet;
 return packet;
 }
 */

